﻿#include "hotelinfo.h"

HotelInfo::HotelInfo()
{

}

HotelInfo::HotelInfo(QString hotelNum, QString user, QString name ,QString location, QString star,
                     QString type, QString city, QString phone, int totalCount, int lowPrice, int highPrice,
                      QString openedTime, QString decoratedTime, QString description,QString cancellation,
                     QString instruction, QString server, QString businessLicense,QString photo, QString state,
                     QString mark,int commentCount, bool isSave)
{
    m_totalHouse = totalCount;
    m_lowPrice = lowPrice;
    m_highPrice = highPrice;

    m_hotel = hotelNum;
    m_user = user;
    m_name = name;
    m_state = state;
    m_location = location;

    m_star = star;
    m_type = type;
    m_city = city;
    m_phone = phone;
    m_description = description;

    m_commentCount = commentCount;
    m_photo = photo;
    m_server = server;
    m_mark = mark;
    m_businessLicense = businessLicense;

    m_cancellation = cancellation;
    m_instruction = instruction;
    m_openedTime = openedTime;
    m_decoratedTime = decoratedTime;
    m_save = isSave;
}

bool HotelInfo::getIsSave() const
{
    return  m_save;
}
int HotelInfo::getTotalHouse() const
{
    return  m_totalHouse;
}
int HotelInfo::getLowPrice() const
{
    return  m_lowPrice;
}
int HotelInfo::getHighPrice() const
{
    return  m_highPrice;
}
int HotelInfo::getCommentCount() const
{
    return  m_commentCount;
}
const QString& HotelInfo::getUser() const
{
    return  m_user;
}
const QString& HotelInfo:: getHotel() const
{
    return  m_hotel;
}
const QString& HotelInfo:: getName() const
{
    return  m_name;
}
const QString& HotelInfo::getLocation() const
{
    return  m_location;
}
const QString& HotelInfo::getState() const
{
    return  m_state;
}
const QString& HotelInfo::getStar() const
{
    return  m_star;
}
const QString& HotelInfo::getType() const
{
    return  m_type;
}
const QString& HotelInfo::getMark() const
{
    return  m_mark;
}
const QString& HotelInfo::getCity() const
{
    return  m_city;
}
const QString& HotelInfo::getPhone() const
{
    return  m_phone;
}
const QString& HotelInfo::getPhoto() const
{
    return  m_photo;
}
const QString& HotelInfo::getServer() const
{
    return  m_server;
}
const QString& HotelInfo::getBusinessLicense() const
{
    return  m_businessLicense;
}
const QString& HotelInfo::getDescription() const
{
    return  m_description;
}
const QString& HotelInfo::getCancellation() const
{
    return  m_cancellation;
}
const QString& HotelInfo::getInstruction() const
{
    return m_instruction ;
}
const QString& HotelInfo::getOpenedTime() const
{
    return  m_openedTime;
}
const QString& HotelInfo::getDecoratedTime() const
{
    return  m_decoratedTime;
}

void HotelInfo::setIsSave(bool isSave)
{
    m_save = isSave;
}
void HotelInfo::setTotalHouse(int totalHouse)
{
    m_totalHouse = totalHouse;
}
void HotelInfo::setLowPrice(int lowPrice)
{
    m_lowPrice = lowPrice;
}
void HotelInfo::setHighPrice(int highPrice)
{
    m_highPrice = highPrice;
}
void HotelInfo::setCommentCount(int count)
{
    m_commentCount = count;
}
void HotelInfo::setUser(const QString& user)
{
    m_user = user;
}
void HotelInfo::setHotel(const QString& hotelNum)
{
    m_hotel = hotelNum;
}
void HotelInfo::setName(const QString& name)
{
    m_name = name;
}
void HotelInfo::setLocation(const QString& location)
{
    m_location= location;
}
void HotelInfo::setState(const QString& state)
{
    m_state = state;
}
void HotelInfo::setStar(const QString& star)
{
    m_star = star;
}
void HotelInfo::setType(const QString& type)
{
    m_type = type;
}
void HotelInfo::setMark(const QString& mark)
{
    m_mark = mark;
}
void HotelInfo::setCity(const QString& city)
{
    m_city = city;
}
void HotelInfo::setPhone(const QString& phone)
{
    m_phone = phone;
}
void HotelInfo::setPhoto(const QString& path)
{
    m_photo = path;
}
void HotelInfo::setServer(const QString& server)
{
    m_server = server;
}
void HotelInfo::setBusinessLicense(const QString& path)
{
    m_businessLicense = path;
}
void HotelInfo::setDescription(const QString& description)
{
    m_description = description;
}
void HotelInfo::setCancellation(const QString& cancellation)
{
    m_cancellation = cancellation;
}
void HotelInfo::setInstruction(const QString& instruction)
{
    m_instruction = instruction;
}
void HotelInfo::setOpenedTime(const QString& openedTime)
{
    m_openedTime = openedTime;
}
void HotelInfo::setDecoratedTime(const QString& decoratedTime)
{
    m_decoratedTime = decoratedTime;
}
